package com.thinkgem.jeesite.modules.fantasy.bean;

import com.thinkgem.jeesite.modules.fantasy.dao.CabinetDao;
import com.thinkgem.jeesite.modules.fantasy.dao.ItemDao;
import com.thinkgem.jeesite.modules.fantasy.entity.Item;
import com.thinkgem.jeesite.modules.fantasy.service.UseBehavior;
import com.thinkgem.jeesite.modules.fantasy.utils.SpringContextUtils;

public abstract class ItemBean {
	UseBehavior useBehavior;
	String usePosition;
	CabinetDao cabinetDao;
	ItemDao itemDao;
	
	public CabinetDao getCabinetDao() {
		return cabinetDao;
	}

	public void setCabinetDao(CabinetDao cabinetDao) {
		this.cabinetDao = cabinetDao;
	}

	public ItemDao getItemDao() {
		return itemDao;
	}

	public void setItemDao(ItemDao itemDao) {
		this.itemDao = itemDao;
	}
	
	public String getUsePosition() {
		return usePosition;
	}

	public void setUsePosition(String usePosition) {
		this.usePosition = usePosition;
	}

	public ItemBean() {
		
	}
	
	public void setUseBehavior(String className) {
		useBehavior = (UseBehavior) SpringContextUtils.getBean(className); 
	}
	
	public abstract String useItem(Item item);
	
}
